package cn.libinal.scloud.base.common.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author libinal
 * created at 2018/11/6 20:46
 */
@Data
@NoArgsConstructor
@RequiredArgsConstructor
public class TreeNode {
    @NonNull
    private String id;
    @NonNull
    private String text;
    private List<TreeNode> children = new ArrayList<>();
}
